//
//  main.m
//  base_m_05
//
//  Created by China Dragon on 2023/1/25.
//

/*
 Property
 https://www.bilibili.com/video/BV1EE41157Uz?p=41&vd_source=4110e082785c06a8c24a5c86c6182472
 
 注意：
 @property 和 @synthesize是编译器的特性
 
 */
#import <Foundation/Foundation.h>
#import "Student.h"
#import "Teacher.h"

int main(int argc, const char * argv[]) {
    @autoreleasepool {
        Student *stu = [[Student alloc] init];
        stu.age = 18;
        NSLog(@"stu age is %i",stu.age);
        
        Teacher *teacher = [[Teacher alloc]init];
        teacher.age = 30;
        NSLog(@"teacher.age is %i",teacher.age);
        //teacher.age is 30
        
        
    }
    return 0;
}
